home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 June / CHIP Haziran 2001.iso / prog / share / 04 / setup.exe / MM6.Cab / F1489_NetscapeCSSFix.action.F6A680DD_F3FB_4CF3_BABB_0D0F06E630F5 < prev    next >
Text File  |  2000-08-17  |  3KB  |  67 lines

  1. <html>
  2.  
  3.     <head>
  4.         <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
  5.         <title>Netscape CSS Fix Action</title>
  6.         <meta name="generator" content="Adobe GoLive 5">
  7.     </head>
  8.  
  9.     <body bgcolor="white">
  10.         <center>
  11.             <font size="6">Netscape CSS Fix Action</font>
  12.             <hr>
  13.         </center>
  14.         <csactionclass name="Netscape CSS Fix" function="CSNSFix" nsversion="4" ieversion="4"></csactionclass>
  15.         <p>
  16.         <script language="JavaScript1.2" cyberversion="N1.2"><!--
  17. function CSFixFct() {
  18.     var d = document; var w = window;
  19.     if (d.cs.csFix.w != w.innerWidth || d.cs.csFix.h != w.innerHeight) {
  20.         d.location = d.location; }
  21. }
  22. function CSNSFix(action) { 
  23.     var d = document; var w = window;
  24.     if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
  25.         if (typeof d.cs == 'undefined') { 
  26.             d.cs = new Object;
  27.             d.cs.csFix = new Object; 
  28.         } else if (CSIsFrame (w) == true) CSFixFct();
  29.         d.cs.csFix.w = w.innerWidth;
  30.         d.cs.csFix.h = w.innerHeight; 
  31.         window.onresize = CSFixFct;
  32.       }
  33. }
  34. function CSIsFrame (window) {
  35.     var rootWindow = window.parent;
  36.     if (rootWindow == 'undefined') return false;
  37.     for (i = 0; i < rootWindow.frames.length; i++)
  38.         if (window == rootWindow.frames[i]) return true;
  39.     return false;
  40. }
  41. // -->
  42.         </script>
  43.          </p>
  44.  
  45.         <table cool width="221" height="107" border="0" cellpadding="0" cellspacing="0" gridx="16" showgridx gridy="16" showgridy bgcolor="#eeeeee">
  46.             <tr height="1" cntrlrow>
  47.                 <td width="1" height="1"><spacer type="block" width="1" height="1"></td>
  48.                 <td width="4" height="1"><spacer type="block" width="4" height="1"></td>
  49.                 <td width="216" height="1"><spacer type="block" width="216" height="1"></td>
  50.             </tr>
  51.             <tr height="6">
  52.                 <td width="1" height="6"><spacer type="block" width="1" height="6"></td>
  53.                 <td width="4" height="6"><spacer type="block" width="4" height="6"></td>
  54.                 <td width="216" height="6"><spacer type="block" width="216" height="6"></td>
  55.             </tr>
  56.             <tr height="100">
  57.                 <td width="1" height="100"><spacer type="block" width="1" height="100"></td>
  58.                 <td width="4" height="100"><spacer type="block" width="4" height="100"></td>
  59.                 <td width="216" height="100" colspan="1" rowspan="1" valign="top" align="left" xpos="4">
  60.                     <csactioncntrl x="4" y="6" width="212" height="48" alignx="scale" aligny="top" type="InfoText" value="This action fixes the Netscape 4 bug that causes the page to lose most of its CSS information when the window is resized.">
  61.                 </td>
  62.             </tr>
  63.         </table>
  64.     </body>
  65.  
  66. </html>
  67.